import {Injectable} from "@angular/core";
import 'rxjs/add/operator/map';
import {Http} from "@angular/http";
import {UrlData} from "../../common/urldata";
/**
 * 收藏
 */
@Injectable()
export class ArticleReplyService {

  constructor(private http: Http, private urlData: UrlData) {
  }

  save(code: any) {
    return this.http
      .post(this.urlData.baseUrl + `v1/article/reply`, code)
      .map(response => response.json());
  }
}
